<template>
  <h1>hello!</h1>
  {{ store.count }}
  <button @click="store.count++">增加+</button>
  <button @click="store.count--">减少-</button>
</template>

<script lang="ts" setup>
import { mainStore } from '@/store'
const store = mainStore()
console.log(store.count)
</script>

<style scoped></style>
